<%@page import="com.weixinli.beans.DetailInfo"%>
<%@ page import="com.weixinli.beans.UserInfo"%>
<%@ page import="com.weixinli.utils.SessionAttributeName"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!doctype html>
<html><!-- InstanceBegin template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta charset="utf-8">
<!-- InstanceBeginEditable name="title" -->
<title>发表微心情</title>

<link rel="shortcut icon" type="image/x-ico" href="../images/favicon.ico"/>
<link rel="icon" type="image/gif" href="images/animated_favicon1.gif" />
<link rel="stylesheet" type="text/css" href="../css/index.css"/>
<link href="css/publish.css" rel="stylesheet" type="text/css"/>
<script src="js/jquery-1.11.3.js"></script>
<script>
	var w_uid;
	var w_email;
	var uname;
	$(function(){
		w_uid=$("#w_uid").val();
		w_email=$("#w_email").val();
		uname=$("#uname").val();
		if(w_uid == "") {
			alert("请先登录!");
			location.href="../login/login.html";
		}
	});
</script>
<script src="js/publish.js"></script>
<!-- InstanceEndEditable -->
</head>

<body>
<!--头部开始-->
<div class="header">
	<input type="hidden" id="w_uid" value="${sessionScope.currentUser.w_uid }">
	<input type="hidden" id="w_email" value="${sessionScope.currentUser.w_email }">
	<input type="hidden" id="uname" value="${sessionScope.userDetailInfo.uname }">
    <div class="logo">
        <a href="../index.html"><img src="../images/logo.png"></a>
    </div>
    <div class="nav">
        <ul>
            <li><a href="../index.jsp" class="tit">首页</a></li>
            <li><a href="../FM/FM.jsp" class="tit">心理FM</a></li>
            <li><a href="moods.jsp" class="tit">心情说</a></li>
            <li><a href="../article/article.jsp" class="tit">杂志</a></li>
            <li><a href="../test/test.jsp" class="tit">测试</a></li>
            <li><a href="../smile/smile.jsp" class="tit">微笑墙</a></li>
        </ul>
    </div>
    <div class="reg">
        <ul>
            <c:if test="${empty sessionScope.currentUser}">
	            <li><a href="../login/login.html">登录</a></li>
	            <li><span class="line"></span></li>
	            <li><a href="../reg/reg.html">注册</a></li>
	       	</c:if>
	       	<c:if test="${!empty sessionScope.currentUser}">
	       		<li id="myli"><span>欢迎您</span>[<a href="../userServlet?op=getPerInfo" style="color:yellow;font-size:12px;" id="user_email">${sessionScope.currentUser.w_email}</a>]
	       		<span id="myspan"></span>
	       		<div id="current_userInfo">
	       			<dl>
	       				<dd><a href="per.jsp">个人中心</a></dd>
	       				<dd><a href="publish.jsp">发表说说</a></dd>
	       				<dd><a href="#">我的通知</a></dd>
	       				<dd><a href="../exit.jsp">退&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;出</a></dd>
	       			</dl>
	       		</div>
	       		</li>
	       	</c:if>
        </ul>
    </div>
    <div class="sear">
        <form target="_blank" action="" method="get">
            <input type="text" class="text" name="sear" placeholder="搜索" />
            <input type="submit" class="submit" value="&#10140;"/>
        </form>
    </div>
</div>
<!--头部结束-->
<!-- InstanceBeginEditable name="content" -->
<article>
    	<div class="head">
       		<a href="moods.html"><img class="wxq1" src="images/moods.png" style="width:200px; height:80px;"/></a>
            <img class="wxq2" src="images/word.png" style="width:400px; height:80px;"/>
        </div>
    	<div class="publish">
	    	<h2 class="pub_moods">发表心情：<span class="tip_top" style="font-size:12px;"><span style="color:red;">*</span>为必填</span></h2>
            <br />
	        <form id="moodsform" action="" class="moods_form" method="post">
	        	<p style="font-size:12px;">
	            	<span class="items">标&nbsp;&nbsp;&nbsp;题：</span>
	            	<input type="text" id="id_title" name="title" value="" maxlength="30" class="title" placeholder="请输入心情标题"> 
	            	<span style="color:red;">*</span>&nbsp;30字符以内
	            </p>
                <p>
	            	<span class="items" style="float:left;">内&nbsp;&nbsp;&nbsp;容： </span>
	            	<textarea id="word" name="content" class="word" placeholder="有什么想说的，尽管写下来吧..." onChange="getNum()"></textarea><br>
	                <span class="tips">还可以输入<span id="max_words">400</span>/400字符</span>
	            </p>
	            <p style="width:95%;">
	            	<span class="items" id="radio">类&nbsp;&nbsp;&nbsp;别：</span>
	            	<input type="radio" name="chice" id="radio_1" value="婚恋情感">
	            	<label for="radio_1" class="radio">婚恋情感</label> &nbsp;
                    
	            	<input type="radio" name="chice" id="radio_2" value="学业职场">
	            	<label for="radio_2" class="radio">学业职场</label> &nbsp;
	            	
	            	<input type="radio" name="chice" id="radio_3" value="人际交往">
	            	<label for="radio_3" class="radio">人际交往</label> &nbsp;
	            	
	            	<input type="radio" name="chice" id="radio_4" value="自我成长">
	            	<label for="radio_4" class="radio">自我成长</label> &nbsp;
	            	
	            	<input type="radio" name="chice" id="radio_5" value="身心健康">
	            	<label for="radio_5" class="radio">身心健康</label> &nbsp;
	            	
	            	<input type="radio" name="chice" id="radio_6" value="专业交流">
	            	<label for="radio_6" class="radio">专业交流</label> &nbsp;
                    
                    <input type="radio" name="chice" id="radio_7" value="亲子教育">
	            	<label for="radio_7" class="radio">亲子教育</label> &nbsp;
	            	
	            	<input type="radio" name="chice" id="radio_8" value="其他" style="margin-left:58px;">
	            	<label for="radio_8" class="radio">其他</label> &nbsp;
	            	<span style="color:red;">*</span>
	            	<br>
	            	<span id="radio_msg" class="inputmsg"></span>
	            </p>
	            <p class="vailcode">
	            	<span class="items">验证码：</span>
	            	<input type="text" id="verifycode" name="verifycode" class="verifycode" placeholder="请输入验证码" style="padding:0 5px;" maxlength="4"/>
		        	<a></a>
		        	<img id="safecodeloginimg" class="code_pic" src="valiCodeImg.jsp">
                    <a style="margin-left:105px;" href="javascript:changeCode()" id="changecodepic">换一个</a><br>
		        	<span id="id_secquestion" class="secquestion" style="display: block">
		        		<img id="id_secquestion_img" style="visibility:hidden" />
		        	</span>
		        	<span id="id_secanswer_msg" class="inputmsg"></span>
	            </p>
	            <p class="bottom_btn">
	            	<label for="check"><input type="checkbox" class="checkbox_name" id="check" checked="checked"/><span>匿名发表</span></label>
	            	<input id="btns" type="button" class="btns" value="发表" onclick="publishMood()">
	            </p>
            </form>
        </div>
        <div class="right">
        	<div class="ad_groom">
            	<p style="font-weight:bold;font-size:14px;margin-bottom:20px;">编辑推荐 :</p>
            	<img src="images/they.jpg" alt="联系心理专家" style="width:100%;">
            </div>
            <div class="article_groom">
            
            </div>
        </div>
    </article>
<!-- InstanceEndEditable -->
<!--内容部分结束-->
<div id="footer">
  <div id="footer_content">
       	<div id="nav">
            <ul>
                <li><a href="#">关于我们</a></li>
                <li><a href="#">加入我们</a></li>
                <li><a href="#">联系我们</a></li>
                <li><a href="#">免责声明</a></li>
                <li><a href="#">友情链接</a></li>
                <li><a href="#">网站地图</a></li>
                <li><a href="#">手机版</a></li>
                <li><a href="#">手机应用</a></li>
                <li><a href="#" style="display: none">投稿</a></li>
            </ul>
        </div>
        <div id="links">
            <span>友情链接：</span>
            <ul>
                <li><a target="_blank" href="http://www.nlp.cn/">NLP心理学</a></li>
                <li><a target="_blank" href="http://zhidao.baidu.com/daily/">百度知道日报</a></li>
                <li><a target="_blank" href="http://iask.fh21.com.cn/">飞华问医生</a></li>
                <li><a target="_blank" href="http://www.dxsbb.com/">大学生网</a></li>
                <li><a target="_blank" href="http://yuwen.chazidian.com/">语文网</a></li>
                <li><a target="_blank" href="http://tag.120ask.com/"> 有问必答知识库</a></li>
                <li><a target="_blank" href="http://www.xinli001.com/zx/">心理咨询</a></li>
                <li><a target="_blank" href="http://wannianli.tianqi.com/">天气网</a></li>
                <li><a target="_blank" href="http://www.pm25.com/">绿色呼吸</a></li>
                <li><a target="_blank" href="http://www.vmovier.com/">V电影</a></li>
                <li><a target="_blank" href="http://iask.sina.com.cn/c/79.html ">爱问健康</a></li>
            </ul>
        </div>
        <div id="copyright">
            <div id="footer_1">
                &copy; 2015 All Rights Reserved. <a target="_blank" href="http://www.miibeian.gov.cn/">粤ICP备12051153号</a>
            </div>
            <div id="footer_2">
                <a href="#">
                    <img src="../images/footer_pic1.png" align="absmiddle" />
                </a>
                <a href="#">
                    <img src="../images/footer_pic2.png" align="absmiddle" />
                </a>
            </div>
        </div>
    </div>
</div>
</body>
<!-- InstanceEnd --></html>

